Persist = {

};

Persist.loadScenesFile = function(fileUrl,cb){
	var obj;
	var xhr = null;
	if(window.XMLHttpRequest)
		xhr = new XMLHttpRequest();
	else{
		return;
	}

	xhr.onreadystatechange = function(){
		if(xhr.readyState == 4 && xhr.status == 200){
			var txt = xhr.responseText;
			obj = JSON.parse(txt);
			cb(obj);
		}
	};

	xhr.open("GET",fileUrl,true);
	xhr.send();
};
